/*
 * @Author: WangGuojian 1085844536@qq.com
 * @Date: 2023-04-21 22:15:12
 * @LastEditTime: 2023-04-21 23:55:27
 * @LastEditors: WangGuojian 1085844536@qq.com
 * @FilePath: \guigu-oa\vue-admin-template-master\src\api\process\processTemplate.js
 * @Description:
 */
import request from "@/utils/request";

const api_name = "/admin/process/processTemplate";

export default {
    getPageList(page, limit) {
        return request({
            url: `${api_name}/${page}/${limit}`,
            method: "get",
        });
    },
    getById(id) {
        return request({
            url: `${api_name}/get/${id}`,
            method: "get",
        });
    },

    save(role) {
        return request({
            url: `${api_name}/save`,
            method: "post",
            data: role,
        });
    },

    updateById(role) {
        return request({
            url: `${api_name}/update`,
            method: "put",
            data: role,
        });
    },
    removeById(id) {
        return request({
            url: `${api_name}/remove/${id}`,
            method: "delete",
        });
    },
    publish(id) {
        return request({
            url: `${api_name}/publish/${id}`,
            method: "get",
        });
    },
};
